package com.dt76.smallloanbackendservice.service.etao;

import com.dt76.smallloanbackendservice.pojo.etao.CurrentUser;
import com.dt76.smallloanbackendservice.pojo.etao.Department;
import com.dt76.smallloanbackendservice.utils.Page;

import java.util.List;

public interface DepartmentService {

    //分页获取部门
    Page getAllDept(Integer pageIndex);

    Department getDetpById(Integer did);

    //获取所有部门
    List<Department> getDept();

    boolean addNewDept(Department department,Integer currentId);

    boolean updDept(Department department,Integer currentId);

    boolean updDeptEnable(Integer did, Integer enable);

    boolean delDeptById(Integer did, CurrentUser currentUser);


}
